<?php
include("database.php");

$GeneratedTimestamp=date('Y-m-d H:i:s');

$sql="INSERT INTO
        DonateList (
          Type,
          Timestamp,
          Name,
          Contact,
          Location,
          Details,
          Password,
		  Deleted
        )
      VALUES (
        '$_POST[Type]',
        '$GeneratedTimestamp',
        '$_POST[Name]',
        '$_POST[Contact]',
        '$_POST[Location]',
        '$_POST[Details]',
        '$_POST[Password]',
		'0'
       )";

if (!mysqli_query($con,$sql))
  {
  die('Error: ' . mysqli_error($con));
  }

mysqli_close($con);
?>